node = _gtk_rbtree_first (tree);
path = gtk_tree_path_new_first ();
- do
+ while (node != NULL)
{
if (GTK_RBNODE_FLAG_SET (node, GTK_RBNODE_IS_SELECTED))
list = g_list_prepend (list, gtk_tree_path_copy (path));
while (!done);
}
}
- while (TRUE);
gtk_tree_path_free (path);
{
gint *count = (gint *)data;
+ g_return_if_fail (node != NULL);
+
if (GTK_RBNODE_FLAG_SET (node, GTK_RBNODE_IS_SELECTED))
(*count)++;
/* find the node internally */
path = gtk_tree_path_new_first ();
- do
+ while (node != NULL)
{
if (GTK_RBNODE_FLAG_SET (node, GTK_RBNODE_IS_SELECTED))
{
while (!done);
}
}
- while (TRUE);
out:
if (path)
gboolean toggle = FALSE;
GtkTreePath *path = NULL;
+ g_return_val_if_fail (node != NULL, FALSE);
+
select = !! select;
if (GTK_RBNODE_FLAG_SET (node, GTK_RBNODE_IS_SELECTED) != select)